﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dogd.WalkingSkeleton
{
	[Table("Band")]
	public class Band
	{
		public Band()
		{
			this.PrimaryKey = new Key();
		}

		public Band(string name)
			:this()
		{
			this.Name = name;
		}

		[PrimaryKeyColumn("BandID")]
		public int DbKey
		{
			get { return this.PrimaryKey.Value; }
			set { this.PrimaryKey.Value = value; }
		}

		[Column("Name")]
		public string Name
		{
			get;
			set;
		}

		public Key PrimaryKey
		{
			get;
			set;
		}
	}
}
